package com.pasabahceambalaj.session;

import com.pasabahceambalaj.entity.*;
import java.util.ArrayList;
import java.util.List;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.framework.EntityHome;

@Name("sevkHome")
public class SevkHome extends EntityHome<Sevk> {

	public void setSevkId(Long id) {
		setId(id);
	}

	public Long getSevkId() {
		return (Long) getId();
	}

	@Override
	protected Sevk createInstance() {
		Sevk sevk = new Sevk();
		return sevk;
	}

	public void load() {
		if (isIdDefined()) {
			wire();
		}
	}

	public void wire() {
		getInstance();
	}

	public boolean isWired() {
		return true;
	}

	public Sevk getDefinedInstance() {
		return isIdDefined() ? getInstance() : null;
	}

	public List<Isemirhareket> getIsemirharekets() {
		return getInstance() == null ? null : new ArrayList<Isemirhareket>(getInstance().getIsemirharekets());
	}

}
